Skip to content

mcpx: effect probe for daemon.autostart (#8468 chain 2) - #11772

Merged
dezren39 merged 1 commit into
mainfrom
queue/20756-8468-daemon-autostart
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/20756-8468-daemon-autostart

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add an environment-driven effect probe proving daemon.autostart=false prevents implicit daemon startup and the default starts it.
  • Replace the daemon.autostart exemption and lower the exemption pin.

Verification

  • go test ./internal/e2e -run TestDaemonAutostartIsReachableFromTheEnvironment -count=1
  • Full go test ./internal/e2e -count=1 is running locally.

Part of #8468 (chain 2 of 23).


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Moves daemon.autostart from EffectExemptions to EffectProbes with
TestDaemonAutostartIsReachableFromTheEnvironment: with autostart off and
no daemon, ls refuses naming the disabled rung and leaves no socket; at
the default it starts a daemon and leaves its socket. EffectExemptionPin
ratchets 194 -> 193 and the feature_coverage exemption line is deleted.

Full e2e guard still reports 5 pre-existing ledger violations unrelated
to this change (cli cache, cli want, op apis_remove, op plugin_session_close,
setting script.language), so the full suite is not green.
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 09:52
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 50 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c43d1c41-779d-4758-b88b-dea62353ff46
Commits

Reviewing files that changed from the base of the PR and between f32cef9 and 66ad83e.

Files selected for processing: 3

  • pkgs/mcpx/internal/e2e/effect_test.go
  • pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txt
  • pkgs/mcpx/internal/settings/effect.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T09:54:35.847594Z 66ad83e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 66ad83e165

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

// appears; at the default, `ls` succeeds and leaves a socket.
func TestDaemonAutostartIsReachableFromTheEnvironment(t *testing.T) {
socketsIn := func(e *env) []string {
socks, _ := filepath.Glob(filepath.Join(e.dir, "state", "*.sock"))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Resolve the actual daemon socket instead of globbing state

When the temporary directory is long, such as with macOS's default TMPDIR or a Nix sandbox, daemon.socketPath relocates sockets outside the state directory once their preferred path exceeds 100 bytes (internal/daemon/paths.go). Consequently, on.run("ls") successfully starts a daemon, but this glob returns nothing and the new probe fails despite correct behavior. The existing harness already handles this relocation by consulting daemon info records during cleanup. Resolve the recorded socket here rather than assuming it remains under state.

Useful? React with 👍 / 👎.

@dezren39
dezren39 merged commit 6a87937 into main Nov 18, 2026
1 check passed
@dezren39
dezren39 deleted the queue/20756-8468-daemon-autostart branch November 18, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant